package org.ljy.forum6.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
@ApiModel("帖子信息")
public class Article {
    private Long id;

    @ApiModelProperty("板块id")
    private Long boardId;

    @ApiModelProperty("作者id")
    private Long userId;

    @ApiModelProperty("帖子标题")
    private String title;

    @ApiModelProperty("访问次数")
    private Integer visitCount;

    @ApiModelProperty("回复次数")
    private Integer replyCount;

    @ApiModelProperty("点赞次数")
    private Integer likeCount;

    private Byte state;

    private Byte deleteState;


    @ApiModelProperty("发布时间")
    private Date createTime;

    private Date updateTime;

    @ApiModelProperty("帖子正文")
    private String content;

    //文章关联对象-作者
    private User user;

    //关联版块对象--版块id
    private Board board;

    @ApiModelProperty("⽤⼾是不是作者") // ⽤于swagger的注解
    private Boolean own;
}